package gtkwire;

public class GTKWireSignal
{
	public static final GTKWireSignal ACTIVATE = new GTKWireSignal( "activate" );
	public static final GTKWireSignal CHANGED = new GTKWireSignal( "changed" );
	public static final GTKWireSignal CLICKED = new GTKWireSignal( "clicked" );
	public static final GTKWireSignal DESTROY = new GTKWireSignal( "destroy" );
	public static final GTKWireSignal EDITING_DONE = new GTKWireSignal( "editing_done" );
	public static final GTKWireSignal ENTER_NOTIFY_EVENT = new GTKWireSignal( "enter_notify_event" );
	public static final GTKWireSignal NOTIFY = new GTKWireSignal( "notify" );
	public static final GTKWireSignal PRESSED = new GTKWireSignal( "pressed" );
	public static final GTKWireSignal RELEASED = new GTKWireSignal( "released" );
	public static final GTKWireSignal TOGGLED = new GTKWireSignal( "toggled" );
	public static final GTKWireSignal UNDEFINED = new GTKWireSignal( "undefined" );
	public static final GTKWireSignal VALUE_CHANGED = new GTKWireSignal( "value_changed" );
	public static final GTKWireSignal REQUEST_TIMEOUT = new GTKWireSignal( "request_timeout" );

	private String signalName;

	private GTKWireSignal( String signalName )
	{
		this.signalName = signalName;
	}
	
	public boolean isMatch( String matchSignalName )
	{
		if( matchSignalName.equals( signalName ) ) return true;
		return false;
	}
	public boolean isMatch( GTKWireMessage msg )
	{
		return isMatch( msg.getSignal() );
	}
	
	public String signalName(){ return signalName; }

}//end class